CREATE TABLE [dbo].[TMLIQU]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[CO_LIQU] [dbo].[TD_VC_020] NOT NULL,
[AP_PATE_LIQU] [dbo].[TD_VC_050] NOT NULL,
[AP_MATE_LIQU] [dbo].[TD_VC_050] NOT NULL,
[DE_NOMB_LIQU] [dbo].[TD_VC_050] NOT NULL,
[CO_ZONA] [dbo].[TD_VC_003] NULL,
[TI_COMI] [dbo].[TD_VC_001] NULL,
[TI_SITU] [dbo].[TD_VC_003] NULL,
[VA_PORC_MONT] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TMLIQU__VA_PORC___3A228BCB] DEFAULT ((0)),
[TI_PORC_MONT] [dbo].[TD_VC_001] NULL,
[TI_VENT] [dbo].[TD_VC_003] NULL,
[TI_LIQU] [dbo].[TD_VC_003] NOT NULL,
[NO_VEND] [dbo].[TD_VC_020] NULL,
[AP_MATE_VEND] [dbo].[TD_VC_020] NULL,
[AP_PATE_VEND] [dbo].[TD_VC_020] NULL,
[CO_TRAB] [dbo].[TD_VC_020] NULL,
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TMLIQU__CO_USUA___3B16B004] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TMLIQU__FE_USUA___3C0AD43D] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TMLIQU__CO_USUA___3CFEF876] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TMLIQU__FE_USUA___3DF31CAF] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TMLIQU] ADD CONSTRAINT [PK__TMLIQU__8B9A65D65E00C4E5] PRIMARY KEY CLUSTERED  ([CO_EMPR], [CO_LIQU]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TMLIQU] ADD CONSTRAINT [FK__TMLIQU__CO_EMPR__0816FA42] FOREIGN KEY ([CO_EMPR]) REFERENCES [dbo].[TMPARA_TESO] ([CO_EMPR])
GO
